/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mfi.models;

/**
 *
 * @author User
 */
public class CartItem {
    
    int id;
    String name;
    int qty;
    int size;
    double price;
    String description;
    
    public CartItem() {
        this.id = 0;
        this.name = "";
        this.qty = 0;
        this.size = 0;
        this.price = 0;
        this.description = "";
    }

    public CartItem(int id, String name, int qty, int size, double price, String description) {
        this.name = name;
        this.id = id;
        this.qty = qty;
        this.size = size;
        this.price = price;
        this.description = description;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getQty() {
        return qty;
    }

    public void setQty(int qty) {
        this.qty = this.qty + qty;
    }
    
    public double total() {
        return this.qty * this.price;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    
    
    
}
